package org.vectrics.user;

/**
 * Title:        Web Site
 * Description:
 * Copyright:    Copyright (c) 2001
 * Company:      Vectrics
 * @author Mike Moore
 * @version 1.0
 */

public class UserRegistration {

    public UserRegistration() {
    }
    private String email = "";
    private String email2 = "";
    private String workPhone = "";
    private String cellPhone = "";
    private String lastName = "";
    private String firstName = "";
    private String company = "";
    private String title = "";
    private String industry = "";
    private boolean emailTextOnly = false;
    private String country = "";
    private String city = "";
    private String state = "";
    private String address1 = "";
    private String address2 = "";
    private String postalCode = "";
    private String homePhone = "";

    public String getEmail() {
        return email;
    }
    public void setEmail(String email) {
        this.email = email;
    }

    public String getEmail2() {
        return email2;
    }
    public void setEmail2(String email2) {
        this.email2 = email2;
    }
    public void setWorkPhone(String workPhone) {
        this.workPhone = workPhone;
    }
    public String getWorkPhone() {
        return workPhone;
    }
    public void setCellPhone(String cellPhone) {
        this.cellPhone = cellPhone;
    }
    public String getCellPhone() {
        return cellPhone;
    }
    public void setLastName(String lastName) {
        this.lastName = lastName;
    }
    public String getLastName() {
        return lastName;
    }
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }
    public String getFirstName() {
        return firstName;
    }
    public void setCompany(String company) {
        this.company = company;
    }
    public String getCompany() {
        return company;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getTitle() {
        return title;
    }
    public void setIndustry(String industry) {
        this.industry = industry;
    }
    public String getIndustry() {
        return industry;
    }

    public String toString() {
        String regStr = "<user-registration " +
            "last-name=\"" + getLastName() + "\" " +
            "first-name=\"" + getFirstName() + "\" " +
            "address-1=\"" + getAddress1() + "\" " +
            "address-2=\"" + getAddress2() + "\" " +
            "city=\"" + getCity() + "\" " +
            "state=\"" + getState() + "\" " +
            "postal-code=\"" + getPostalCode() + "\" " +
            "e-mail=\"" + getEmail() + "\" " +
            "work-phone=\"" + getWorkPhone() + "\" " +
            "cell-phone=\"" + getCellPhone() + "\" " +
            "company=\"" + getCompany() + "\" " +
            "title=\"" + getTitle() + "\" " +
            "industry=\"" + getIndustry() + "\" ";


            regStr += "/>";
        return(regStr);
    }
    public void setEmailTextOnly(boolean emailTextOnly) {
        this.emailTextOnly = emailTextOnly;
    }
    public boolean isEmailTextOnly() {
        return emailTextOnly;
    }
    public void setCountry(String country) {
        this.country = country;
    }
    public String getCountry() {
        return country;
    }
    public void setCity(String city) {
        this.city = city;
    }
    public String getCity() {
        return city;
    }
    public void setState(String state) {
        this.state = state;
    }
    public String getState() {
        return state;
    }
    public void setAddress1(String address1) {
        this.address1 = address1;
    }
    public String getAddress1() {
        return address1;
    }
    public void setAddress2(String address2) {
        this.address2 = address2;
    }
    public String getAddress2() {
        return address2;
    }
    public void setPostalCode(String postalCode) {
        this.postalCode = postalCode;
    }
    public String getPostalCode() {
        return postalCode;
    }
    public void setHomePhone(String homePhone) {
        this.homePhone = homePhone;
    }
    public String getHomePhone() {
        return homePhone;
    }
}